package me.ereach.casting;

public class Main02 {
    public static void main(String[] args) {
        Person[] objs = {
//                new Person("Tom", "male"),
                new Employee("Jerry", "male", 5000, 30, 20),
                new Student("Cherry", "female", "c1", 2022)
        };

        for (var obj : objs)
            System.out.println(obj);
    }
}
